package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(20)"`
	Password string `gorm:"type:varchar(255)"`
}
type UserOrder struct {
	gorm.Model
	Title   string `gorm:"type:varchar(20)"`
	Content string `gorm:"type:text"`
	Cid     int    `gorm:"type:int(11)"`
}
type UserOrderList struct {
	UserId   int    `gorm:"type:int(11)"`
	Username string `gorm:"type:varchar(20)"`
	Password string `gorm:"type:varchar(20)"`
	Title    string `gorm:"type:varchar(20)"`
	Content  string `gorm:"type:text"`
}
